package com.pinecone.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.pinecone.dao.UtilRandomSlaveDao;
import com.pinecone.entity.UtilRandomSlaveEntity;
import com.pinecone.service.UtilRandomSlaveService;



@Service("utilRandomSlaveService")
public class UtilRandomSlaveServiceImpl implements UtilRandomSlaveService {
	@Autowired
	private UtilRandomSlaveDao utilRandomSlaveDao;
	
	@Override
	public UtilRandomSlaveEntity queryObject(Long slaveAccount){
		return utilRandomSlaveDao.queryObject(slaveAccount);
	}
	
	@Override
	public List<UtilRandomSlaveEntity> queryList(Map<String, Object> map){
		return utilRandomSlaveDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return utilRandomSlaveDao.queryTotal(map);
	}
	
	@Override
	public void save(UtilRandomSlaveEntity utilRandomSlave){
		utilRandomSlaveDao.save(utilRandomSlave);
	}
	
	@Override
	public void update(UtilRandomSlaveEntity utilRandomSlave){
		utilRandomSlaveDao.update(utilRandomSlave);
	}
	
	@Override
	public void delete(Long slaveAccount){
		utilRandomSlaveDao.delete(slaveAccount);
	}
	
	@Override
	public void deleteBatch(Long[] slaveAccounts){
		utilRandomSlaveDao.deleteBatch(slaveAccounts);
	}
	
}
